package com.dp;

import java.util.Arrays;

public class Solution42 {
    public int findLengthOfLCIS(int[] nums) {
        int dpi =1;
        int max =1;
        for (int i = 1; i < nums.length; i++) {
            if (nums[i]>nums[i-1]){
                dpi++;
            } else {
                dpi = 1;
            }
            max =Math.max(max,dpi);
        }
        return max;
    }
}
